package com.bishe.app.core.common;

/**
 * Created : 2024/3/15, 17:08
 *
 * @author : jeffrey.hu
 **/
public class BizException extends RuntimeException {

    Integer code;

    String message;


    public BizException() {
        super();
    }

    public BizException(Integer code) {
        this.code = code;
    }

    public BizException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public BizException(String message) {
        super(message);
        this.message = message;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    protected BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
